<?php
	require("libraries/student.php");
  	class Index extends Student{
		public function __construct(){
			parent::__construct();
			$this->load->helper("url");
			$this->load->library("string");	
			$this->load->model("mindex");
		}
		public function index(){
			$data['act'] 			= 0;
			$data['title'] 			= "Thông tin cơ bản";
			$data['list_contact'] 	= $this->mindex->list_contact();
			$data['list_order'] 	= $this->mindex->list_order();
			$data['list_proview'] 	= $this->mindex->list_proview();
			$data['list_buy'] 		= $this->mindex->list_buy();
			$data['list_search'] 	= $this->mindex->list_search();
			//$this->debug($data['list_proview']);
			$data['template'] = "home";
			$this->load->view("layout",$data);
		}
	}